﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewPost.aspx.cs" Inherits="WebAppTest.Forum.Viewpost" MasterPageFile="~/Forum/Forum.Master" %>
<%@ Import Namespace="WebAppTest.Forum"%>
<%@ Register TagPrefix="Pyxis" TagName="ViewEntry" Src="~/Forum/ViewEntry.ascx" %>
<%@ Register TagPrefix="Pyxis" TagName="NewPost" Src="~/Forum/NewPost.ascx" %>

<asp:Content ID="content" runat="server" ContentPlaceHolderID="MainContent">

    <asp:Label ID="lblSubject" runat="server" CssClass="subject" />

    <div>
        <asp:Button ID="btnReply" runat="server" Text="Reply" OnClick="btnReply_Click" />
    </div>

    <Pyxis:ViewEntry ID="viewPostEntry" runat="server" />
    
    <asp:Repeater ID="rptReplies" runat="server">
        <ItemTemplate>
            <br />
            <div>
                <Pyxis:ViewEntry ID="viewReply" runat="server" Post='<%# Container.DataItem %>' />
            </div>
        </ItemTemplate>
    </asp:Repeater>
    
    <asp:Panel ID="pnlReply" runat="server" Visible="false">
        <Pyxis:NewPost ID="newPost" runat="server" OnSaveOrCancel="newPost_SaveOrCancel" />
    </asp:Panel>

</asp:Content>
